import java.util.Scanner;

/**
 * @Author YuanYuan
 * @Date 2022/4/23
 * @Time 15:19
 */

public class TestDemo {
    static final int MAX = 100;

    public static void main(String[] args) {

    }

    public static void main2(String[] args) {
        int i = 1;
        while(i<=MAX){
            if(i%3!=0 || i%5!=0) {
                i++;
                continue;
            }
            System.out.println(i);
            i++;
        }
    }
    public static void main1(String[] args) {
       // Scanner scanner = new Scanner(System.in);
        int sum1 = 0,sum2 = 0,sum3 = 0;
        int i = 1;
        while(i<=MAX){
            if(0 == i%2){
                sum1+=i;
            }else{
                sum2+=i;
            }
            sum3+=i;
            i++;
        }
        System.out.println("偶数和："+sum1+" 奇数和："+sum2+" 总和: "+sum3);
    }

}
